import request from "@/utils/request";
// -------------轮播------------

//推荐内容轮播  /market/recommend/list
export const getCarouselListApi = (params) => {
  return request({
    url: "/market/recommend/list",
    method: "get",
    params,
  });
};

//推荐文章列表 /work/doc/recommend
export const getDocRecommendApi = (params) => {
  return request({
    url: "/doc/overall/pcRecommend",
    method: "get",
    params,
  });
};

// 获取法条文章的内容 doc/policy/getInfo 1法条 2解答 3政策 4合同
export const getLawGetInfoApi = (id) => {
  return request({
    url: `doc/law/getInfo?id=${id}`,
    method: "get",
  });
};

// 获取解答文章的内容 doc/policy/getInfo 1法条 2解答 3政策 4合同
export const getQaGetInfoApi = (id) => {
  return request({
    url: `doc/qa/getInfo?id=${id}`,
    method: "get",
  });
};

// 获取政策文章的内容 doc/policy/getInfo 1法条 2解答 3政策 4合同
export const getTopGetInfoApi = (id) => {
  return request({
    url: `doc/top/getInfo?id=${id}`,
    method: "get",
  });
};

// 获取合同文章的内容 /doc/scontract/getInfo  1法条 2解答 3政策 4合同
export const getScontractGetInfoApi = (id) => {
  return request({
    url: `doc/scontract/getInfo?id=${id}`,
    method: "get",
  });
};
